<?php
$this->group(['domain' => env('DOMAIN_ADMIN'),'prefix' => 'config/sms/tpl'], function() {
    $this->get('/view/list', 'Sms\TplController@getLists');
	$this->get('/view/{id}', 'Sms\TplController@getOne')->where('id','[0-9]+');

	//获取所有
	$this->get('/view/all', 'Sms\TplController@getAll');

	//获取公共配置某个key的值列表
	$this->get('/view/configkey', 'Sms\TplController@getConfigKey');

	//验证服务商下模块唯一
	$this->get('/view/check/module', 'Sms\TplController@checkUniqueModule');
	//更新
	$this->post('/update', 'Sms\TplController@postOne');
	//发送短信
	$this->post('/update/send', 'Sms\TplController@sendTpl');
	
	//删除
	$this->delete('/delete/{id}', 'Sms\TplController@deleteOne')->where('id','[0-9]+');
});
